


import Koa from "koa"
import koaBodyParser from "koa-bodyparser"
import initCore from './core/Init'
import http from 'http'
const app = new Koa()
app.use(koaBodyParser())


const server: http.Server = new http.Server(app.callback())
initCore(app,server)
server.listen(8080,()=> {
    console.log('\x1B[32m','run success')
    console.log('\x1B[34m','app started at port 8080...')
})
server.setTimeout(0)
